package com.xxyf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author xxyf
 * @since 2022-12-14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("menu")
@Data
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("菜单名")
    @TableField("menu_name")
    private String menuName;

    @ApiModelProperty("菜单状态（0正常 1停用）")
    @TableField("status")
    private String status;

    @ApiModelProperty("权限标识")
    @TableField("perms")
    private String perms;

    @TableField("create_by")
    private Long createBy;

    @TableField("gtm_cretae")
    private Timestamp gtmCretae;

    @TableField("update_by")
    private Long updateBy;

    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Timestamp gmtModified;

    @ApiModelProperty("是否删除（0未删除 1已删除）")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("乐观锁")
    @TableField("version")
    @Version
    private Integer version;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;


}
